# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'gmp-toolchain'
    version = '5.0.5'
    licenses = [License.LGPLv3Plus]
    configure_options = "--disable-shared --enable-static"

    files_libs = ['libgmp']
    files_devel = ['include/gmp.h']

    def prepare(self):
        self.remotes = {'origin': '%s/%s' % (self.config.git_root, 'gmp')}
        if self.config.target_arch == Architecture.X86:
            self.new_env['ABI'] = "32"
